﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using System.Data.SqlClient;

using EHTSaleManager.Code.DAL;
using EHTSaleManager.Code.Entity;

namespace EHTSaleManager.Code
{
    public class CurrentBalanceProvider
    {

        public static void ICurrentBalance(CurrentBalance theCurrentBalance)
        {
            SqlCommand command = new SqlCommand();
            command.CommandText = "proc_ICurrentBalance";
            command.CommandType = CommandType.StoredProcedure;
            command.Parameters.Add(new SqlParameter("@CustomerID", theCurrentBalance.CustomerID));
            command.Parameters.Add(new SqlParameter("@TotalAmount", theCurrentBalance.TotalAmount));

            DataProvider.ExecuteNoneQuery(command);
        }
    }
}